function getLength(arg: { length: number }) {
  console.log(arg);
  return arg.length;
}
getLength("aaaaa"); //字符串传参数的时候 会搞成包装类型{length:''}
let a = new Error();

const b = 1; //1
let c = 1; //number

let o: object = {
  name: "marvin",
};
// console.log(o.name); //编译不过 默认object 是个 {} 空

const info: {
  name: string;
  age: number;
  height?: number;
} = {
  name: "marvin",
  age: 18,
};

function parseLyric(lyric: string) {
  const lyrics: any[] = [];
  return lyrics;
}
const lyInfos = parseLyric("adadffefe");

type point = {
  x: number;
  readonly y: number;
};
const printCoordinate = (point: point) => {};
printCoordinate({ x: 0, y: 0 });

enum d {
  "left",
  "right",
}
interface IPerson {
  name: string;
  age: 18;
}
let person: IPerson = {
  name: "marvin",
  age: 18,
};
export {};
111111111111
222222222222